package com.example.day16;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Lenovo
 */
public class MapDemo01 {
    public static void main(String[] args) {
        Map<String, Integer> map = new Map<>() {
            @Override
            public int size() {
                return 0;
            }

            @Override
            public boolean isEmpty() {
                return false;
            }

            @Override
            public boolean containsKey(Object key) {
                return false;
            }

            @Override
            public boolean containsValue(Object value) {
                return false;
            }

            @Override
            public Integer get(Object key) {
                return 0;
            }

            @Override
            public Integer put(String key, Integer value) {
                return 0;
            }

            @Override
            public Integer remove(Object key) {
                return 0;
            }

            @Override
            public void putAll(Map<? extends String, ? extends Integer> m) {

            }

            @Override
            public void clear() {

            }

            @Override
            public Set<String> keySet() {
                return Set.of();
            }

            @Override
            public Collection<Integer> values() {
                return List.of();
            }

            @Override
            public Set<Entry<String, Integer>> entrySet() {
                return Set.of();
            }

            @Override
            public boolean equals(Object o) {
                return false;
            }

            @Override
            public int hashCode() {
                return 0;
            }
        };
        map.put("张三", 100);
        map.put("李四", 90);
        map.put("王五", 80);
        map.put("赵六", 70);
        System.out.println(map);

    }
}
